import request from '@/utils/request'

// 查询应急查验列表
export function listStat_getEmergency(data) {
  return request({
    url: '/audit/emergency/list',
    method: 'post',
    data: data
  })
}

// 查询应急查验详细
export function getStat_getEmergency(id) {
  return request({
    url: '/audit/emergency/' + id,
    method: 'get'
  })
}

// 新增应急查验
export function addStat_getEmergency(data) {
  return request({
    url: '/audit/emergency',
    method: 'post',
    data: data
  })
}

// 修改应急查验
export function updateStat_getEmergency(data) {
  return request({
    url: '/audit/emergency',
    method: 'put',
    data: data
  })
}

// 上传应急查验
export function endStat_getEmergency(data) {
  return request({
    url: '/audit/emergency/upload',
    method: 'put',
    data: data
  })
}

// 删除应急查验
export function delStat_getEmergency(id) {
  return request({
    url: '/audit/emergency/' + id,
    method: 'delete'
  })
}
